import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

const primaryColor = Color(0xFFdc3023);
const pageBackgroundColor = Color.fromARGB(255, 238, 206, 204);

ThemeData lightTheme = ThemeData.light().copyWith(
    primaryColor: primaryColor,
    dividerColor: const Color.fromARGB(255, 74, 43, 43),
    indicatorColor: Color.fromARGB(255, 96, 92, 92),
    highlightColor: Color.fromARGB(255, 247, 202, 202),
    splashColor: Colors.white12,
    colorScheme: ThemeData.light()
        .colorScheme
        .copyWith(primary: primaryColor, onSurface: primaryColor),
    listTileTheme: ListTileThemeData(
        textColor: Colors.black,
        subtitleTextStyle: TextStyle(color: Colors.grey)),
    appBarTheme: AppBarTheme(
      foregroundColor: Colors.white,
      systemOverlayStyle: SystemUiOverlayStyle.dark
          .copyWith(statusBarColor: Colors.transparent),
      elevation: 0,
      backgroundColor: primaryColor,
      iconTheme: const IconThemeData(color: Colors.white),
    ),
    scaffoldBackgroundColor: pageBackgroundColor,
    iconTheme: const IconThemeData(
      color: Colors.white,
    ),
    drawerTheme: ThemeData.light()
        .drawerTheme
        .copyWith(backgroundColor: pageBackgroundColor),
    datePickerTheme: ThemeData.light()
        .datePickerTheme
        .copyWith(weekdayStyle: TextStyle(color: Colors.black)),
    floatingActionButtonTheme: const FloatingActionButtonThemeData(
        backgroundColor: primaryColor, foregroundColor: Colors.white),
    bottomNavigationBarTheme: const BottomNavigationBarThemeData(
        selectedItemColor: primaryColor,
        unselectedItemColor: Colors.tealAccent),
    textButtonTheme: TextButtonThemeData(
        style: TextButton.styleFrom(
            iconColor: primaryColor, foregroundColor: Colors.black)),
    dialogBackgroundColor: Colors.white,
    dialogTheme: DialogTheme(
      backgroundColor: Colors.white,
      surfaceTintColor: Colors.white,
      // barrierColor: primaryColor,
    ),
    outlinedButtonTheme: OutlinedButtonThemeData(
        style: OutlinedButton.styleFrom(
            foregroundColor: primaryColor,
            side: BorderSide(color: primaryColor),
            iconColor: primaryColor,
            shape:
                RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
            textStyle: TextStyle(color: primaryColor))));
